package com.lx.dao;

import com.lx.entity.News;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;


@Mapper
@Repository
public interface NewsDao {

  List<News> selectAll();

  News selectById(int id);

  News selectNewsByTitle(String title);

  int addNews(News news);
  int updateNews(News news);

  int delNews(int id);

}
